﻿using System.ComponentModel.DataAnnotations;

namespace GioHangViet.Models
{
    [Table("ComterProduct")]
    public class ComterProduct
    {
        [Key, Column(Order = 0)]
        [Required(ErrorMessageResourceName = "ErrorComterAlias", ErrorMessageResourceType = typeof(Resources.Error))]
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayComterAlias")]
        public string Alias { get; set; }

        [Key, Column(Order = 1)]
        [Required(ErrorMessageResourceName = "ErrorComterProductProductId", ErrorMessageResourceType = typeof(Resources.Error))]
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayComterProductProductId")]
        public int ProductId { get; set; }
    }
}